import 'package:get/get.dart';

// ===== 页面导入 =====
import '../pages/splash_page.dart';
import '../pages/scan_page.dart';
import '../pages/main_control_page.dart';
import '../pages/light_control_page.dart';
import '../pages/stats_page.dart';
import '../pages/calorie_page.dart';

// ✅ 新增 Wi-Fi 配置页面导入
import '../pages/wifi/wifi_config_page.dart';
import '../pages/anion_page.dart';
import '../pages/music_page.dart';
/// 路由定义
class Routes {
  static const splash = '/splash';
  static const scan = '/scan';
  static const main = '/main';
  static const light = '/light';
  static const stats = '/stats';
  static const calorie = '/calorie';

  // ✅ 新增 Wi-Fi 配置页路由常量
  static const wifiConfig = '/wifi_config';
}

/// 页面注册
class AppPages {
  static final pages = [
    GetPage(name: Routes.splash, page: () => const SplashPage()),
    GetPage(name: Routes.scan, page: () => const ScanPage()),
    GetPage(name: Routes.main, page: () => const MainControlPage()),
    GetPage(name: Routes.light, page: () => const LightControlPage()),
    GetPage(name: Routes.stats, page: () => const StatsPage()),
    GetPage(name: Routes.calorie, page: () => const CaloriePage()),


    // ✅ 新增 Wi-Fi 页面
    GetPage(name: Routes.wifiConfig, page: () => const WifiConfigPage()),
    GetPage(
      name: '/anion',
      page: () => const AnionPage(),
    ),


    GetPage(
      name: '/music',
      page: () => const MusicPage(),
    ),


  ];
}
